const nunjucks = require('nunjucks');

nunjucks.configure({ autoescape: true });


let data =  { food : {
'ketchup': '5 tbsp',
'mustard': '1 tbsp',
'pickle': '0 tbsp'
},items:[{i:1},{i:2}],mas:[1,2,3]};

let aa = nunjucks.renderString(`
  {% for ingredient, amount in food %}
    Use {{ amount }} of {{ ingredient }}
    {{loop.index}}
  {% endfor %}

  {# Loop through all the users #}
  {% for i in mas %}
   {% include 'test.html' %}
   {{loop.last}}
   {% endfor %}zcxxcz
   {% if items and items.length>0 %}
  {111xzxxz}
   {% endif %}
--->

{{ [1,2,3,4,5,6,7,8,9] | random }}
  `,data);

console.log(aa);
